// 同步
// module.default = function (source, map) {
//     console.log('我是jd-style-loader')
//     return source
// }

// 异步
//loader/less-loader
const less = require("less");
function loader(source) {
  const callback = this.async();
  less.render(source, function (err, res) {
    let { css } = res;
    callback(null, css);
  });
}
module.exports = loader;
